﻿using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
using JESAI.Core.Modularity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;


namespace JESAI.Uow
{
    //[DependsOn(
    //   typeof(JESAIFrameworkDddModule))]
    public static class ServiceCollectionExtensions 
    {

        public static IServiceCollection AddUow(this IServiceCollection services)
        {
            services.TryAddSingleton<IUnitOfWorkManager, DefaultUnitOfWorkManager>();

            return services;
        }
    }
}
